package com.pojo;

import java.io.Serializable;

public class Course implements Serializable {

    private Integer cId;    //课程编号
    private String cName;   //课程名称
    private String cSummary;    //课程概述
    private Double price;   //课程单价
    private Teacher teacher;    //教师（教师编号）
    private String cPic;    //课程照片首页展示照片、课程购买页banner
    private String cMov;    //课程视频
    private CourseType courseType;   //课程类型 编号
    private Integer state; //商品状态

    public Course(Integer cId, String cName, String cSummary, Double price, Teacher teacher, String cPic, String cMov, CourseType courseType, Integer state) {
        this.cId = cId;
        this.cName = cName;
        this.cSummary = cSummary;
        this.price = price;
        this.teacher = teacher;
        this.cPic = cPic;
        this.cMov = cMov;
        this.courseType = courseType;
        this.state = state;
    }

    public Course() {
    }

    @Override
    public String toString() {
        return "Course{" +
                "cId=" + cId +
                ", cName='" + cName + '\'' +
                ", cSummary='" + cSummary + '\'' +
                ", price=" + price +
                ", teacher=" + teacher +
                ", cPic='" + cPic + '\'' +
                ", cMov='" + cMov + '\'' +
                ", courseType=" + courseType +
                ", state=" + state +
                '}';
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String getcSummary() {
        return cSummary;
    }

    public void setcSummary(String cSummary) {
        this.cSummary = cSummary;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public String getcPic() {
        return cPic;
    }

    public void setcPic(String cPic) {
        this.cPic = cPic;
    }

    public String getcMov() {
        return cMov;
    }

    public void setcMov(String cMov) {
        this.cMov = cMov;
    }

    public CourseType getCourseType() {
        return courseType;
    }

    public void setCourseType(CourseType courseType) {
        this.courseType = courseType;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
